
<script src="<%= global.config.cdn %>/moment.js/2.8.0/moment.min.js"></script>
<script src="<%= global.config.cdn %>/jquery/2.2.4/jquery.<%= global.config.mode %>js"></script>
<script src="<%= global.config.cdn %>/jquery-date-range-picker/0.14.4/jquery.daterangepicker.min.js"></script>
<script src="<%= global.config.cdn %>/bootstrap/3.3.6/js/bootstrap.<%= global.config.mode %>js"></script>

<!-- bootstrap-datetimepicker -->
<script src="<%= global.config.publicPath %>/bootstrap-datetimepicker-master/js/bootstrap-datetimepicker.js"></script>
<script src="<%= global.config.publicPath %>/bootstrap-datetimepicker-master/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>

<script src="<%= global.config.publicPath %>/dolphin/dolphin.<%= global.config.mode %>js"></script>
<script src="<%= global.config.publicPath %>/dolphin/message_zh-CN.js"></script>
<script src="<%= global.config.publicPath %>/page/scripts/common/config.js"></script>
<script src="<%= global.config.publicPath %>/page/scripts/common/common.js"></script>
<script src="<%= global.config.publicPath %>/page/scripts/common/menu.js"></script>
<script src="<%= global.config.cdn %>/select2/4.0.3/js/select2.<%= global.config.mode %>js"></script>
<script src="<%= global.config.cdn %>/printThis/1.9.0/printThis.min.js"></script>

<script>
    (function () {
        yams.context = {
            contextPath: "<%= global.config.contextPath %>",
            viewPrefix: "<%= global.config.viewPrefix %>",
            queryData: JSON.parse('<%= JSON.stringify(queryData); %>'.replace(/&#34;/g, '"') || "{}"),
            userData: JSON.parse('<%= session && JSON.stringify(session.userData); %>'.replace(/&#34;/g, '"') || "{}")
        };
        Dolphin.path.contextPath = yams.context.contextPath;
        Dolphin.defaults.url.viewPrefix = yams.context.viewPrefix;
        Dolphin.defaults.ajax.requestHeader['mySessionCode'] = "<%= session.userData && session.userData.userCode %>";
//        Dolphin.wechatUrl = "gy.rechange.cn";
        Dolphin.wechatUrl = "www.kycozyhome.com";

        yams.context.checkAdmin = function () {
            console.log(yams.context.userData.userId,'----------------------------');
            return (yams.context.userData.userId == 'admin' ? '' : yams.context.userData.userId);
        }
    })();
</script>
<script src="<%= global.config.publicPath %>/page/scripts/<%= path; %>.js"></script>
<script>
    $(function () {
        //页面渲染
        if (yams.page && yams.page.init) {
            yams.page.init();
        }
    });
</script>
